package myauctioneer.dao;

import java.util.ArrayList;

import myauctioneer.dto.Article;

public interface ArticleDAOI {
	public void saveArticle(Article a);
	public Article loadArticleByUserId(int userId);
	public Article loadArticleByArticleId(int articleId);
	public ArrayList<Article> loadArticlesByUserId(int userId);
	public ArrayList<Article> loadArticlesByUserIdWithInvalidDate(int userId);
	public ArrayList<Article> loadArticlesByCategory(String category);
	public boolean deleteArticleById(int userId);

	/**
	 * Query articles by arbitrary parameters.
	 */
	public ArrayList<Article> query(java.util.Map<String, String> q);
}
